package cn.sykj.car.mapper;

import cn.sykj.car.entity.Users;
import cn.sykj.car.vo.UsersVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户 Mapper 接口
 * </p>
 *
 * @author Yixu
 * @since 2018-11-29
 */
public interface UsersMapper extends BaseMapper<Users> {

    // 分页查询用户
    List<UsersVO> findUsers(Page page, @Param("request")UsersVO request);

    // 根据角色id获取用户
    List<Users> selectUsersByRoleId(Integer roleId);

}
